//
//  ForgetPassWordOneVC.swift
//  甜言蜜语
//
//  Created by yingli_yanfa_liuxingyu on 16/9/19.
//  Copyright © 2016年 wl. All rights reserved.
//

import UIKit
import SVProgressHUD
class ForgetPassWordOneVC: UIViewController {
    @IBOutlet weak var textField: UITextField!
    @IBOutlet weak var nextBtn: UIButton!
    override func viewDidLoad() {
        super.viewDidLoad()
        publicMethod.setHUDStyle()
        
    }
    override func viewWillAppear(animated: Bool) {
        super.viewWillAppear(animated)
        self.tabBarController?.tabBar.hidden = true
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    override func viewWillDisappear(animated: Bool) {
        SVProgressHUD.dismiss()
        super.viewWillDisappear(animated)
    }

    @IBAction func nextBtnClicked(sender: UIButton){
        if self.textField.text == ""{
            SVProgressHUD.showErrorWithStatus("请输入手机号码")
            return
        }else{
            let vc = self.storyboard?.instantiateViewControllerWithIdentifier("ForgetPassWordTwoVC") as! ForgetPassWordTwoVC
            
            vc.phoneNum = self.textField.text!
            
            self.navigationController?.pushViewController(vc, animated: true)
            
        }
       
    }

}
